package com.wanmait.baohan.mapper;


import com.wanmait.baohan.pojo.DailyPlan;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DailyPlanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DailyPlan record);

    int insertSelective(DailyPlan record);

    DailyPlan selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DailyPlan record);


    int updateByPrimaryKey(DailyPlan record);

    void insertPlan(@Param("dailyPlan") DailyPlan dailyPlan);
    List<DailyPlan> findList(Integer id);

    List<DailyPlan> findEnableList(@Param("id") Integer id, @Param("sdate") Date date1, @Param("edate") Date date2);
    List<DailyPlan> findDayList(@Param("id") Integer id, @Param("date") Date date,@Param("enabl")Integer enabl);

    void delPlan(Integer id);

    void comPlan(Integer id);

    void changePlan(@Param("id") Integer id, @Param("work") String work);

    void changeEable1(@Param("date")Date date);

    void changeEable2(@Param("date")Date date);


    List<DailyPlan> findArrangeWork(@Param("date")Date date, @Param("enabl")Integer enable, @Param("id")Integer id);
}